﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>添加商品</title>

    <link rel="icon" href="favicon.ico" type="image/ico">


    <meta name="author" content="yinqi">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/materialdesignicons.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</head>

<body data-logobg="color_8" data-sidebarbg="color_8">
<div class="layout-web" >
    <div class="layout-container">

        <!--页面主要内容-->
        <div class="container-fluid">
            <div class="col-md-6 col-sm-12" style="margin: 3% auto;float: none;">
                <div class="card" style="border-radius: 30px                 ">
                    <div class="card-header" style="text-align: center;background-color:#D9E5DA;border-radius: 30px">
                        <h3>添加商品</h3></div>
                    <div class="card-body">
                        <form class="form-horizontal" id="form1"
                              action="commodityadd.action?type=2" method="post"
                              style="background-color: #F2F2F2">
                            <input type="hidden" name="type" value="2"/>
                            <div class="form-group">
                                <label class="col-xs-12">商品名称</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text" id="gname"
                                           name="gname" placeholder="商品名称.." onblur="checkName(this)">
                                    <div class="help-block" id="mess"></div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">价格</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text" id="price"
                                           name="price" placeholder="价格..">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">系统版本</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text" id="model"
                                           name="model" placeholder="系统..">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">生产日期</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="date" id="prddate"
                                           name="prddate" placeholder="生产日期..">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">供应商</label>
                                <div class="col-xs-12">
                                    <select style="border-radius: 10px;width: 100%;" name="supplier1" id="supplier1">
                                        <c:forEach var="supplier" items="${list}">
                                            <option id="supplier"
                                                    value="${supplier.supid}">${supplier.supname}</option>
                                        </c:forEach>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">产品类型</label>
                                <div class="col-xs-12">
                                    <select style="border-radius: 10px;width: 100%;" name="itype" id="itype">
                                        <c:forEach var="commodityType" items="${list1}">
                                            <option id="type"
                                                    value="${commodityType.tyid}">${commodityType.tyname}</option>
                                        </c:forEach>
                                    </select>


                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-12" style="text-align: center;">
                                    <button class="btn btn-primary" type="submit"  style="border-radius: 30px;font-family: '楷体';font-size: 17px;background-color: #D9E5DA;border: 0">提交
                                    </button>&nbsp;&nbsp;
                                    <button class="btn btn-info" type="reset" style="border-radius: 30px;font-family: '楷体';font-size: 17px;background-color:#D9E5DA;border: 0">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <!--End 页面主要内容-->
    </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>

</body>
</html>